package com.moonlit.myspring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
public class TestComponent {
  public static void main(String[] args) {
    ApplicationContext context = new ClassPathXmlApplicationContext("spring-idol.xml");
    Hero hero = (Hero)context.getBean("guanyu");
    hero.perform();
  }
}
